<%@ page language="java" import="com.litt.core.common.*,com.gouwudai.gobbs.service.IMasterService,com.gouwudai.gobbs.vo.MasterLoginVO,com.litt.core.exception.NotLoginException" pageEncoding="UTF-8"%>
<%
response.setHeader("Pragma","No-cache");//HTTP 1.1
response.setHeader("Cache-Control","no-cache");//HTTP 1.0
response.setHeader("Expires","0");//防止被proxy

//定义属性供页面直接调用
String LOGIN_ID = "";
String MASTER_NAME = "";

MasterLoginVO masterLogin = (MasterLoginVO)session.getAttribute("MASTER_LOGIN");
if(masterLogin==null)
{
	try
	{		
		IMasterService masterService = (IMasterService)BeanManager.getBean("masterService");
		masterLogin = masterService.masterLogin(request.getCookies(),request.getRemoteAddr());	
		session.setAttribute("MASTER_LOGIN",masterLogin);
		LOGIN_ID = masterLogin.getLoginId();
		MASTER_NAME = masterLogin.getMasterName();
	}
	catch(NotLoginException e)
	{		
		Utility.NotLoginException(request,response,e,"master_login.jsp?redirectUrl="+request.getRequestURI());
		return;
	}
}
else
{
	LOGIN_ID = masterLogin.getLoginId();
	MASTER_NAME = masterLogin.getMasterName();
}	
	
%>

